const url = {
	getQueryString(name){
		let arr = window.location.href.indexOf("?") >= 0?window.location.href.split('?')[1].split('&'): []
        let queryArr = {};
        for (let i = 0; i < arr.length; i++) {
            let newArr = arr[i].split('=');
            queryArr[newArr[0]] = newArr[1];
        }
        return queryArr[name] || "";
	}
}

export default url;